<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Search
 *
 * @author HoangLiem
 */
class Search extends CFormModel {

    public $keyWord;
    public $searchAllTypes = true;
    public $searchById = false;
    public $searchByName = false;
    public $searchByContent = false;
    public $searchByActive = false;

    public function rules() {
        return array(
            array('keyWord', 'required'),
            array('searchAllTypes, searchById, searchByName, searchByContent, searchByActive', 'boolean'),
        );
    }

}

?>
